﻿<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="groups.aspx.vb" Inherits="HauntedNetworkingSite.groups" %>

<%@ Register src="Banner.ascx" tagname="Banner" tagprefix="uc1" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>Groups</title>
    <style type="text/css">
        .style1
        {
            width: 100%;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <div>
    
        <uc1:Banner ID="Banner1" runat="server" />
        <br />
        <br />
        <br />
        <br />
        <br />
        <br />
        <br />
        <br />
        <br />
        <br />
        <br />
        <table class="style1">
            <tr>
                <td>
                    <asp:DataList ID="DataList1" runat="server" DataKeyField="ID" 
                        DataSourceID="GroupsDataSource" RepeatColumns="5" RepeatDirection="Horizontal" 
        ShowFooter="False" ShowHeader="False" HorizontalAlign="Center" CssClass="gridclass">
                        <ItemTemplate>
                            &nbsp;<asp:Image ID="Image1" runat="server" Height="100px" 
                                ImageUrl='<%# Eval("GroupImage", "{0}") %>' />
                            <br />
                            &nbsp;<asp:HyperLink ID="HyperLink1" runat="server" 
                                NavigateUrl='<%# Eval("ID", "GroupProfile.aspx?ID={0}") %>' 
                                Text='<%# Eval("GroupName", "{0}") %>'></asp:HyperLink>
                            <br />
                            <br />
                            <br />
                        </ItemTemplate>
                    </asp:DataList>
                    <asp:SqlDataSource ID="GroupsDataSource" runat="server" 
                        ConnectionString="<%$ ConnectionStrings:PlacesConnectionString %>" 
                        ProviderName="<%$ ConnectionStrings:PlacesConnectionString.ProviderName %>" 
                        SelectCommand="SELECT [GroupImage], [GroupName], [ID] FROM [groups]">
                    </asp:SqlDataSource>
                    &nbsp;</td>
                <td align="right" valign="top">
                    <asp:Image ID="img_AddGroup" runat="server" 
                    ImageUrl="~/Images/Add.gif" />
                <asp:LinkButton ID="linkBtn_AddGroup" runat="server" 
                    CssClass="bannerButtons" Height="32px" PostBackUrl="~/AddGroup.aspx">Add Group</asp:LinkButton>
                    <br />
                    <br />
                    &nbsp;</td>
            </tr>
            <tr>
                <td>
                    &nbsp;</td>
                <td>
                    &nbsp;</td>
            </tr>
            <tr>
                <td>
                    &nbsp;</td>
                <td>
                    &nbsp;</td>
            </tr>
        </table>
    
    </div>
    </form>
</body>
</html>
